package com.huanghuai.retail.controller;

import com.huanghuai.retail.common.R;
import com.huanghuai.retail.entity.DeviceStatus;
import com.huanghuai.retail.service.DeviceStatusService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

public class DeviceStatusController {
    @Resource
    private DeviceStatusService deviceStatusService;

    @PostMapping
    public R<String> saves(@RequestBody DeviceStatus deviceStatus){

        return deviceStatusService.saves(deviceStatus);
    }
}
